package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import entities.*;

public class GetQuestionPack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private Question qstn;
	private User usr;
	private Subject sbjct;

	/**
	 * constructor
	 * 
	 * @param qstn
	 */
	public GetQuestionPack(Question qstn) {
		this.op = OpType.GetQuestion;
		this.qstn = qstn;
	}

	/**
	 * 
	 * @return the question
	 */
	public Question getQuestion() {
		return qstn;
	}

	/**
	 * 
	 * @return the user
	 */
	public User getUsr() {
		return usr;
	}

	/**
	 * 
	 * @param usr
	 *            the user
	 */
	public void setUsr(User usr) {
		this.usr = usr;
	}

	/**
	 * 
	 * @return the question subject
	 */
	public Subject getSbjct() {
		return sbjct;
	}

	/**
	 * 
	 * @param sbjct
	 *            subject to set
	 */
	public void setSbjct(Subject sbjct) {
		this.sbjct = sbjct;
	}
}
